<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    // 注意:字符串遇到 "+" 会拼接形成新的字符串

    // "我有1头小毛驴,我从来也不骑";

    var num = 100;
    var str = "我有" + num + "头小毛驴,我从来也不骑!" ;
    console.log(str);


</script>
</html>